package abg.core.common.util.valid;

import abg.core.common.util.valid.base.ValidBy;
import abg.core.common.util.valid.handler.MaxHandler;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({METHOD, FIELD, PARAMETER})
@Retention(RUNTIME)
@Documented
@ValidBy(MaxHandler.class)
public @interface Max {
    long value() default 0;

    String msg() default "";
}
